package com.neusoft.elmboot.service;

import java.util.List;

import com.neusoft.elmboot.po.Business;

public interface BusinessService {

	public List<Business> listBusinessByOrderTypeId(Integer orderTypeId);
	public Business getBusinessByIdByPass(Integer businessId, String password);
	public Business getBusinessById(Integer businessId);
	public int saveBusiness(Business business);
	
	public int updateBusiness(Business business);
	public int updateBusinessPassword(Integer businessId, String oldPass, String newPass);

	// 新增的方法：随机获取商家
	public List<Business> listRandomBusinessesByOrderTypeId(Integer orderTypeId, Integer limit);
	//模糊查询
	public List<Business> searchBusinessByName(String name);
}
